﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Loja.Banco;

namespace Loja.Padrao
{
    public partial class PadraoConsulta : Form
    {
        
       public LOJA banco { get; set; }

        public PadraoConsulta()
        {            
            InitializeComponent();
        }

        public virtual void btnSair_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void PadraoConsulta_KeyDown(object sender, KeyEventArgs e)
        {
            if (Control.ModifierKeys == Keys.Alt && e.KeyCode == Keys.P)
            {
                Pesquisar();
            }
            else if (Control.ModifierKeys == Keys.Alt && e.KeyCode == Keys.A)
            {
                Abrir();
            }

            else if (e.KeyValue.Equals(27)) //ESC
            {
                this.Close();
            }
        }

        public void Pesquisar()
        {
        }

        public void Abrir()
        {
        }
    }
}
